-
Notifications
You must be signed in to change notification settings - Fork 5
feat: update validate_ibm_catalog_json pre-commit hook to check for HCL editor #1257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@akocbek FYI the catalog team are adding support to only allow HCL in this editor. I think we should hold off merging this until that is supported |
|
@akocbek The new feature is in prod now. The syntax would look like this: |
ocofaigh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akocbek Looks good - just 1 small comment
| def check_hcl_editor(da_inputs, catalog_inputs): | ||
| inputs_not_have_hcl_editor = [] | ||
| for da_input in da_inputs: | ||
| if da_input["type"].startswith("list(object") or da_input["type"].startswith( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also enforce for type "any"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Co-authored-by: Conall Ó Cofaigh <[email protected]>
Co-authored-by: Conall Ó Cofaigh <[email protected]>

Description
Input is not inside
ibm_catalog.jsoninput is inside

ibm_catalog.jsonbut not HCL editor is usedinput is inside

ibm_catalog.jsonand HCL editor is usedRelease required?
x.x.X)x.X.x)X.x.x)Release notes content
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers